'use strict';
import types from '../actiontype/ActionTypes';

const initialState = {
    address : {
        name:'地点切换',
        addressId:0
    }
}

export default function address(state = initialState, action){
    switch (action.type) {
        case types.CHANGE_ADDRESS_SUCCESS:
            return Object.assign({}, state, {
                address: action.address
            });
        default:
            return state;
    }
}
